package com.uplift.mgt.product.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.uplift.mgt.product.model.ProductPic;

@Repository
public interface IProductPicMapper {
	/**
	 * 查询商品图片
	 * 
	 * @param productPic
	 * @return List<Map<String, Object>>
	 */
	public List<Map<String, Object>> selectProductPic(ProductPic productPic);

	/**
	 * 新增商品图片
	 * 
	 * @param productPic
	 * @return int
	 */
	public int insertProductPic(List<ProductPic> productPics);

	/**
	 * 删除商品图片
	 * 
	 * @param productPic
	 * @return int
	 */
	public int deleteProductPic(List<String> ids);
	
	public int deleteByProductId(@Param(value = "productId") String productId);
}
